﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AuthMenuModule.ascx.cs" 
    Inherits="ChapterX.Modules.AuthMenuModule" %>

<%@ Import Namespace="ChapterX.BusinessFacade" %>

<div id="auth-menu-module">
<dl class="auth-menu">
    <dt>菜单</dt>
<% if (CurrentUserInfo.IsLibrarian) { %>
    <dd><a href="/Auth/Teacher/ApplicationList.aspx?dsid=1">全部申请</a></dd>
    <dd><a href="/Auth/Teacher/CourseList.aspx">全部课程</a></dd>
    <dd><a href="/Auth/Teacher/BookList.aspx">全部教材</a></dd>
    
<% } %>
<% if (CurrentUserInfo.IsTeacher) { %>
    <dd><a href="/Auth/Teacher/ApplicationList.aspx">我的申请</a></dd>
    <dd><a href="/Auth/Teacher/CourseList.aspx">我的课程</a></dd>
    <dd><a href="/Auth/Teacher/BookList.aspx">我的教材</a></dd>
    
<% } %>
    <dd><a href="/Logout.aspx">退出登录</a></dd>
</dl>
</div>